$sideBarWidth: 210px;
$menuBg: #ffffff;
$menuText: #1a1a1a;
$menuActiveText: #409eff;
$menuHover: rgb(222, 234, 248);

#app {
  .main-container {
    min-height: 100%;
    transition: margin-left 0.28s;
    margin-left: $sideBarWidth;
    position: relative;
  }

  .sidebar-container {
    transition: width 0.28s;
    width: $sideBarWidth !important;
    background-color: $menuBg;
    height: 100%;
    position: fixed;
    font-size: 0px;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1001;
    overflow: hidden;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.1);
    --el-menu-text-color: #{$menuText};
    --el-menu-bg-color: #{$menuBg};
    --el-menu-active-color: #{$menuActiveText};
    --el-menu-hover-bg-color: #{$menuHover};
  }

  .fixed-header {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9;
    width: calc(100% - #{$sideBarWidth});
    transition: width 0.28s;
  }

  .hideSidebar {
    .sidebar-container {
      width: 54px !important;
    }

    .main-container {
      margin-left: 54px;
    }
    .fixed-header {
      width: calc(100% - 54px);
    }
  }

  .mobile {
    .main-container {
      margin-left: 0px;
    }

    .sidebar-container {
      transition: transform 0.28s;
      width: $sideBarWidth !important;
    }

    .fixed-header {
      width: 100%;
    }

    &.hideSidebar {
      .sidebar-container {
        pointer-events: none;
        transition-duration: 0.3s;
        transform: translate3d(-($sideBarWidth), 0, 0);
      }
    }
  }

  .withoutAnimation {
    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}
